home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam09
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-27
|
1KB
|
80 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
#include "generics.h"
main(int argc, char *argv[])
{
object obj;
long n;
InitDynace(&argc);
/* The following line is used to turn on the automatic garbage
collector (un-comment after the first run) */
/* gSetMemoryBufferArea(Dynace, 50000L); */
/* Create enough new objects to fill up all the memory of a PC
(since no objects are ever explictly disposed). */
for (n=0 ; n++ != 125000L ; ) {
if (!(n % 1000L))
printf("%ld\n", n);
obj = gNewWithDouble(DoubleFloat, 3.141);
}
printf("\nCurrent memory usage = %ld\n", gCurMemUsed(Dynace));
return 0;
}
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/